package io.mft.dev.base.config;

import java.util.Map;

public class LocalApplicationCustomizeConfigNamespaceConfigProvideLoader extends LocalConfigProvideLoader{
	private String customizeConfigNamespace;
	public LocalApplicationCustomizeConfigNamespaceConfigProvideLoader(ClassLoader classLoader,String customizeConfigNamespace) {
		super(classLoader);
		this.customizeConfigNamespace=customizeConfigNamespace;
	}
	@Override
	public Map<String, Object> load() {
		String path=customizeConfigNamespace+".yml";
		Map<String, Object> configObjectMap=parseYaml(classLoader, path);
		return configObjectMap;
	}

	@Override
	public String namespace() {
		return customizeConfigNamespace;
	}
	
}
